package org.example.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ResourcesDao {
    @Update("update sys_role set  type = type + #{money} where role_id = #{id}")
    void inMoney(@Param("id") Integer id, @Param("money") Integer money);
    @Update("update sys_role set type = type - #{money} where role_id = #{id}")
    void outMoney(@Param("id") Integer id, @Param("money") Integer money);
}
